package com.yuanfeng.job.mapper;

import com.yuanfeng.commoms.vo.order.CommissionSettleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName OrderCommissionMapper
 * @Description
 * @Author hyq
 * @Date 2023/9/5 13:21
 * @Version 1.0
 **/
@Mapper
public interface OrderCommissionMapper {

    List<CommissionSettleVO> queryOrderSettle(@Param("commissionType") Integer commissionType);


    int updateOrderSettleBatch(@Param("userId") String userId,@Param("settleRecordId") String settleRecordId,@Param("commissionType") Integer commissionType);

    BigDecimal querySettleAmount(@Param("shareUserId")String shareUserId);

    BigDecimal queryNotquerySettleAmount(@Param("shareUserId")String shareUserId);
}
